package map.android.baidu.carpool.response;

import com.baidu.lbs.net.http.response.ComNetResponse;

import java.io.Serializable;
import java.util.ArrayList;

/**
 * Created by zhangtongyu on 15/3/23.
 * main模块订单列表接口Response
 */
public class OrderListResponse extends ComNetResponse implements Serializable {
    private static final long serialVersionUID = -4522972778751101525L;

    public OrderListRoot data;

    public static class OrderListRoot implements Serializable{

        private static final long serialVersionUID = -6360838117103971472L;

        public int total; //订单的总页数
        public ArrayList<OrderItem> orderList; //订单列表

        public class OrderItem implements Serializable{

            private static final long serialVersionUID = -1986359717744555780L;

            public String orderId; //百度订单id
            public String sfrom; //合作方id
            public String sorderId; //合作方订单id
            public String createTime; //订单创建时间
            public String startTime; //出发时间
            public String startPlace; //出发地
            public String arrivePlace; //目的地
            public String carerNickname; //车主昵称
            public int price; //价格，单位是分
            public int orderStatusId; //订单状态id
            public String orderStatusDesc; //订单状态描述
            public int disableTime; //超时时间

        }
    }

    @Override
    public boolean isBadResponse() {
        return false;
    }

    @Override
    public int getErrorNo() {
        return 0;
    }

    @Override
    public String getErrorMsg() {
        return null;
    }

}
